package com.tbh.annotation.java.impor;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;

@Configuration
public class ConfigScope {

    @Bean
    @Scope("prototype") // 默认是单例, 重写成多例
    public B b() {
        return new B();
    }
}
